decisions = {
	cr_visit_mount_market = {
		ai_check_interval = 60

		potential = {
			is_ruler = yes
			is_adult = yes
		}

		allow = {
			wealth = 10
			prisoner = no
			NOT = { trait = incapable }
			NOT = { is_inaccessible_trigger = yes }

			# A personal mount requires proper facilities at the ruler's capital.
			# Check every tier because CK2 upgrades replace the lower building.
			capital_holding = {
				OR = {
					has_building = ca_stable_1
					has_building = ca_stable_2
					has_building = ca_stable_3
					has_building = ca_stable_4
					has_building = ca_stable_5
					has_building = ca_stable_6

					has_building = tb_cr_western_stable_1
					has_building = tb_cr_western_stable_2
					has_building = tb_cr_western_stable_3
					has_building = tb_cr_western_stable_4

					has_building = ct_cr_western_stable_1
					has_building = ct_cr_western_stable_2
				}
			}
		}

		effect = {
			character_event = { id = cr_mount.1 }
		}

		revoke_allowed = { always = no }

		ai_will_do = {
			factor = 0.25
			modifier = {
				factor = 0
				has_minor_title = title_commander
			}
			modifier = {
				factor = 0
				any_artifact = { has_artifact_flag = cr_mount }
			}
			modifier = { factor = 2 trait = cavalry_leader }
			modifier = { factor = 1.5 trait = organizer }
		}
	}
}
